﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAO;
using DTO;
using System.Data;

namespace BUS
{
  public static  class UserBUS
    {
       public static DataTable  getAllUser()
      {
          return UserDAO.getAllUser();
      }  
      public static DataTable checkLogin(string username, string pass)
      {
          return UserDAO.checkLogin(username, pass);
      }
      public static DataTable getUserByName(string username)
      {
          return UserDAO.getUserByName(username);
      }
      public static bool insertUser(UserDTO user)
      {
          return UserDAO.insertUser(user);
      }
      public static bool updateUser(UserDTO user)
      {
          return UserDAO.updateUser(user);
      }
      public static bool deleteUser(int id)
      {
          return UserDAO.deleteUser(id);
      }
      public static DataTable getUserLast()
      {
          return UserDAO.getUserLast();
      }
      public static DataTable getUserByid(int id)
      {
          return UserDAO.getUserByid(id);
      }
    }
}
